a=rand(1,3);N=50000;B=rand(N,3);
tic
A=repmat(a,N,1);
c=A.*B;
toc

tic
c=bsxfun(@times,a,B);
toc